<%layout("/common/_layout.html"){%>
  <div class="am-cf am-padding">
    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">业务管理</strong> / <small>泛店员业务权限配置</small> / <small>业务配置</small></div>
  </div>
  <div class="am-g am-form-group am-margin-top am-text-default">
    <div class="am-u-sm-12 am-u-md-12">
      请选择要授权的模块、大类、或者业务：
    </div>
  </div>
  <input type="hidden" id="flowId" name="flowId" value="${flowId!''}"/>
  <div class="am-g am-form-group" id="">
    <div class="am-u-sm-12 am-u-md-12">
      <select class="am-u-sm-4 am-u-md-4 am-fl am-margin-top am-margin-right" multiple style="width:23%;height:25rem;" id="busModule">
        <%for(businessType in businessTypeList!){%>
          <option class="am-text-sm" value="${businessType.value}" onclick="getBusiness('${businessType.value}','${businessType.name}','${businessType.remark}')">
            ${businessType.name}
          </option>
        <%}%>
      </select>
      <select class="am-u-sm-4 am-u-md-4 am-fl am-margin-top am-margin-right am-hide" multiple style="width:23%;height:25rem;" id="busType"></select>
      <div class="am-u-sm-4 am-u-md-4 am-margin-top am-hide" style="border:1px rgb(169, 169, 169) solid;width:23%;height:25rem;overflow-y:scroll;float: left;" id="busName"></div>
    </div>
  </div>
  <div class="am-cf"></div>
  <div class="am-g am-form-group am-text-default" id="">
    <div class="am-u-sm-12 am-u-md-12">
      已选业务配置：
    </div>
  </div>
  <div class="am-g am-form-group am-g-collapse am-padding-horizontal am-hide" id="selModuleNameArea">
    <div class="am-u-sm-4 am-u-md-1">
      模块名称：
    </div>
    <div class="am-u-sm-8 am-u-md-11" id="selModuleName"></div>
  </div>
  <div class="am-g am-form-group am-g-collapse am-padding-horizontal am-hide" id="selBusTypeNameArea">
    <div class="am-u-sm-4 am-u-md-1">
      业务大类：
    </div>
    <div class="am-u-sm-8 am-u-md-11" id="selBusTypeName"></div>
  </div>
  <div class="am-g am-form-group am-g-collapse am-padding-horizontal am-hide" id="selBusNameArea">
    <div class="am-u-sm-4 am-u-md-1">
      业务名称：
    </div>
    <div class="am-u-sm-8 am-u-md-11" id="selBusName"></div>
  </div>
  <div class="am-margin am-active" id="submit-btns">
    <button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="javascript: History.back();">返回上一级</button>
    <button type="submit" class="am-btn am-btn-primary am-btn-xs" id="submit-btn">提交保存</button>
  </div>
  <script type="text/javascript" src="${base}/template/admin/js/utils.js"></script>
  <script type="text/javascript" src="${base}/template/admin/js/spreadmember_business_auth_config_data.js"></script>
  <script type="text/javascript">
    var base = "${base}";
  </script>
<%}%>